
from rest_framework import serializers
from .models import *

class SendSer(serializers.ModelSerializer):
      # 只用于序列化输入 # 去掉两边的空格
    password = serializers.CharField(max_length=256, write_only=True, trim_whitespace=True)

    class Meta:
        model = SendModel
        fields = '__all__'